/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_prod_char_value_restrict.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_PROD_CHAR_VALUE_RESTRICT
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_prod_char_value_restrict.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_PROD_CHAR_VALUE_RESTRICT::CTable_PPM_PROD_CHAR_VALUE_RESTRICT( )
 :NPCRecordSet( )
{
  setTableName( "PPM_PROD_CHAR_VALUE_RESTRICT" );
  prepareTable();
  prepareQuery();
 
  RESTRICT_ID.setField( "RESTRICT_ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( RESTRICT_ID );
  makeKeyItem( RESTRICT_ID ); 
  PROD_OFFER_ID.setField( "PROD_OFFER_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PROD_OFFER_ID );
  PRODUCT_ID.setField( "PRODUCT_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRODUCT_ID );
  ATTR_CD.setField( "ATTR_CD", DATA_DOUBLE, 22, 0 );
  makeTableItem( ATTR_CD );
  ATTR_VALUE_ID.setField( "ATTR_VALUE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( ATTR_VALUE_ID );
  DEFAULT_VALUE.setField( "DEFAULT_VALUE", DATA_CHAR, 500, 0 );
  makeTableItem( DEFAULT_VALUE );
  MIN_VALUE.setField( "MIN_VALUE", DATA_DOUBLE, 22, 0 );
  makeTableItem( MIN_VALUE );
  MAX_VALUE.setField( "MAX_VALUE", DATA_DOUBLE, 22, 0 );
  makeTableItem( MAX_VALUE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
}


CTable_PPM_PROD_CHAR_VALUE_RESTRICT::CTable_PPM_PROD_CHAR_VALUE_RESTRICT( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_PROD_CHAR_VALUE_RESTRICT" );
  prepareTable();
  prepareQuery();
 
  RESTRICT_ID.setField( "RESTRICT_ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( RESTRICT_ID );
  makeKeyItem( RESTRICT_ID ); 
  PROD_OFFER_ID.setField( "PROD_OFFER_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PROD_OFFER_ID );
  PRODUCT_ID.setField( "PRODUCT_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRODUCT_ID );
  ATTR_CD.setField( "ATTR_CD", DATA_DOUBLE, 22, 0 );
  makeTableItem( ATTR_CD );
  ATTR_VALUE_ID.setField( "ATTR_VALUE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( ATTR_VALUE_ID );
  DEFAULT_VALUE.setField( "DEFAULT_VALUE", DATA_CHAR, 500, 0 );
  makeTableItem( DEFAULT_VALUE );
  MIN_VALUE.setField( "MIN_VALUE", DATA_DOUBLE, 22, 0 );
  makeTableItem( MIN_VALUE );
  MAX_VALUE.setField( "MAX_VALUE", DATA_DOUBLE, 22, 0 );
  makeTableItem( MAX_VALUE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
}

CTable_PPM_PROD_CHAR_VALUE_RESTRICT::~CTable_PPM_PROD_CHAR_VALUE_RESTRICT( )
{
    close();
}

